﻿<basics:ChildWindow
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	x:Class="SilverMap.Editor.TileLoaderWindow"
	Title="Load Tiles"
	Width="400" Height="300" FontSize="12" mc:Ignorable="d">
	<Grid x:Name="LayoutRoot" Background="White">
		<Grid.RowDefinitions>
			<RowDefinition /> 
		</Grid.RowDefinitions>
		<Border Height="100" VerticalAlignment="Top" BorderBrush="Black" BorderThickness="1" CornerRadius="4" Padding="4">
			<Grid>
				<Button x:Name="LoadButton" Content="Open a Tile XML File" Margin="0" Click="LoadButton_Click" d:LayoutOverrides="Height" HorizontalAlignment="Center" VerticalAlignment="Center" Width="150"/>
				<TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="Load Tile File" TextWrapping="Wrap"/>
			</Grid>
		</Border>
		<Border Height="100" VerticalAlignment="Bottom" BorderBrush="Black" BorderThickness="1" CornerRadius="4" Padding="4">
			<Grid>
				<TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="Create Tile File" TextWrapping="Wrap"/>
				<Button x:Name="CreateButton" Content="Load Tile Images" Margin="0,0,135,0" Click="CreateButton_Click" HorizontalAlignment="Center" Width="125" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
				<Button x:Name="SaveButton" Content="Save Tile XML File" Margin="135,0,0,0" HorizontalAlignment="Center" Width="125" VerticalAlignment="Center" d:LayoutOverrides="Height" Click="SaveButton_Click" IsEnabled="False"/>
			</Grid>   
		</Border>
		<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="OR" TextWrapping="Wrap" FontWeight="Bold"/>
	</Grid>
</basics:ChildWindow>